<?php chdir(dirname(__DIR__));date_default_timezone_set('Asia/Chongqing');require'z/library/Zmsun/ClassLoader.php';$loader=new Zmsun\ClassLoader();$loader->add('Zmsun',getcwd().DIRECTORY_SEPARATOR.'z'.DIRECTORY_SEPARATOR.'library')->register();$systemInfo=Zmsun\System\System::systemConfig();$systemName=$systemInfo->name;$version=$systemInfo->version;if(file_exists('install/install_lock.txt')){$content=<<<S
<div class="tipConBox">
	<div class="bigTip">
		<div class="tipIcon topAlign tipIcon_reset"></div>
		<div class="tipTitle">
			<h3 style="color:#D81818;">警告：安装程序已锁定！</h3>
			<p class="note" style="margin-top:10px;">如需重新安装，请先删除“install/install_lock.txt”文件。</p>
		</div>
	</div>
	<div class="btnBox">
		<div class="grayBtn submitBtn">
			<a href="/install/index.php">开始安装</a>
		</div>
	</div>
</div>
S;
$stepItem=array('js'=>null,'css'=>null);}else{if(!filter_has_var(INPUT_GET,'step')||!in_array($_GET['step'],range(0,3))){$step=0;}else{$step=(int)$_GET['step'];}$stepPages=array(array('title'=>'查看授权条款','file'=>'install/statement.php','css'=>'/install/css/statement.css','js'=>'/install/js/statement.js',),array('title'=>'环境检查','file'=>'install/check_environment.php','css'=>'/install/css/check_environment.css','js'=>'/install/js/check_environment.js',),array('title'=>'设置基本参数','file'=>'install/basic_info.php','css'=>array('/install/css/basic_info.css'),'js'=>array('/install/js/basic_info.js'),),array('title'=>'完成安装','file'=>'install/init.php','css'=>'/install/css/init.css','js'=>null,),);$leftNavItems='';foreach($stepPages as$key=>$item){if($key===$step){$clsStr=' class="stepActive"';$stepItem=$item;}else{$clsStr='';}$leftNavItems.=sprintf('<li%s>%s</li>',$clsStr,$item['title']);}$leftNavItems='<ul class="leftNav">'.$leftNavItems.'</ul>';ob_start();include$stepItem['file'];$stepContent=ob_get_clean();$content=$leftNavItems.'<div class="rightContent">'.$stepContent.'</div>';}$layoutPath='install/layout.php';$title='系统安装-'.$systemName.$version;$css=array_merge(array('/install/css/index.css'),(array)$stepItem['css']);$js=(array)$stepItem['js'];function zmsunlocal_createPage(){$_LAYOUT_TITLE=$GLOBALS['title'];$_LAYOUT_CONTENT=$GLOBALS['content'];$_LAYOUT_CSS=$_LAYOUT_JS='';foreach($GLOBALS['css']as$src){$_LAYOUT_CSS.='<link href="'.$src.'" media="all" rel="stylesheet" type="text/css">';}foreach($GLOBALS['js']as$src){$_LAYOUT_JS.='<script src="'.$src.'" type="text/javascript"></script>';}unset($src);if(!include$GLOBALS['layoutPath']){throw new \RuntimeException('The layout page"'.$GLOBALS['layoutPath'].'" cannot be loaded.');}}zmsunlocal_createPage();?>